package mobileann.mafamily.utils;

import java.net.InetAddress;
import java.net.UnknownHostException;
//import com.mofind.android.base.L;

public class SocketUtils {
    private final static byte[] SERVER_IP = { (byte) 115, (byte) 28,
	    (byte) 216, (byte) 35 };
//    private final static byte[] SERVER_IP = { (byte) 115, (byte) 28,
//    	(byte) 226, (byte) 102 };
    public final static String SERVER_URL = "baby.mobileann.com";
//    public final static String SERVER_URL = "baby.mobileann.cn";

	public static InetAddress getInetAddress() {
		InetAddress local = null;
		try {
			local = InetAddress.getByName(SERVER_URL);
		} catch (UnknownHostException e) {
		}
		if (local == null) {
			try {
				local = InetAddress.getByAddress(SERVER_IP);
			} catch (UnknownHostException e) {
//				L.e("maf", "error--", e);
			}
		}
		return local;
	}

}
